package com.mxc.gift.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lww.springcloudapi.entity.TabEmployee;
import com.lww.springcloudapi.entity.TabSaleplanGiftcode;
import com.lww.springcloudapi.entity.TabSaleplanGiftstock;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 销售礼品编码定义表 服务类
 * </p>
 *
 * @author SHEN
 * @since 2021-03-11
 */
public interface TabSaleplanGiftcodeService extends IService<TabSaleplanGiftcode> {

    /**
     * 礼品库存录入业务
     *
     * @param tabSaleplanGiftcode
     * @return
     */
    boolean insertGiftCode(TabSaleplanGiftcode tabSaleplanGiftcode,TabEmployee tabEmployee);

    /**
     * 礼品库存管理修改业务
     *
     * @param tabSaleplanGiftcode
     * @return
     */
    boolean updGiftCode(TabSaleplanGiftcode tabSaleplanGiftcode, TabEmployee tabEmployee);


    /**
     * 礼品库存管理删除业务
     *
     * @param
     * @return
     */
    boolean delGiftCode(String giftcide);


    /**
     * 礼品管理查询业务
     *
     * @param
     * @param
     * @return
     */
    List<TabSaleplanGiftcode> queryByGiftcode(@Param("pageNo") Integer pageNo,
                                              @Param("pageSize") Integer pageSize,
                                              String giftname, String prizelevel, String acptsiteid);


}
